import request from '@/util/request.ts'

enum API {
  GETALLSHOW = '/show/page',
  GETSHOWBYID = '/show/movies/',
  addShow = '/show/addshow',
}

export const reqAllShow = (data: any) =>
  request.post<any, any>(API.GETALLSHOW, data)
export const reqShowById = (id:any) =>
  request.get<any, any>(`${API.GETSHOWBYID}${id}`)
export const reqAddShow = (data:any) => request.post<any, any>(API.addShow, data)
